<br />
<br />
<br />

<script src="http://cdn.bootcss.com/jqueryui/1.11.3/jquery-ui.js"></script>
<link href="http://cdn.bootcss.com/jqueryui/1.11.3/jquery-ui.css" rel="stylesheet">
<script type="text/javascript">
//日期插件

	$(document).ready(function() {
    $("#cdate").datepicker({
		dateFormat: 'yy-mm-dd'
		});
	});
</script>

<form class="form-horizontal" role="form" action = "index" method = "post">
	<input type = "hidden" name = "client_id" value = "{client_id}" />
	<input type = "hidden" name = "client_name" value = "{client_name}" />
	<input type = "hidden" name = "id" value = "{id}" />
	<input type = "hidden" name = "form2" value = "1" />
	<div class="form-group">
	    <label for="cp" class="col-md-2 control-label">联系人：</label>
		<div class="col-md-4">
		<select class="form-control" name='cp'>
			<option value='{cp_id}'>{cp_name}</option>
		{persons}
			<option value='{id}'>{name}</option>
		{/persons}
		</select>
		</div>
		<label for="means" class="col-md-2 control-label">联系方式：</label>
		<div class="col-md-4">
		<select class="form-control" name='means'>
			<option value='{means}'>{means}</option>
			<option value='电话'>电话</option>
			<option value='电子邮件'>电子邮件</option>
			<option value='登门拜访'>登门拜访</option>
			<option value='linkedin'>linkedin</option>
			<option value='其它'>其它</option>
		</select>
		</div>
	</div>
	<div class="form-group">
		<label for="contact_date" class="col-md-2 control-label">联系日期：</label>
		<div class="col-md-4">
			<input type = "text"  class="form-control" name = "contact_date" id = "cdate" value = "{contact_date}" />
		</div>
		<label for="status" class="col-md-2 control-label">状态：</label>
		<div class="col-md-4">
			<input type = "text"  class="form-control" name = "status" value = "{status}" />
		</div>
	</div>
	<div class="form-group">
		<label for="remark" class="col-md-2 control-label">备注：</label>
		<div class="col-md-10">
			<input type = "text"  class="form-control" name = "remark" value = "{remark}" />
		</div>
	</div>
	<br />
	<div class="form-group">
		<div class="col-md-offset-2 col-md-3">
			<input class="btn btn-default" type = "submit" value="更新"/>
		</div>
	</div>
</form>
